﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.WebApi
{
    /// <summary>
    /// 默认值属性
    /// </summary>
    [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
    public class DefaultAttribute : Attribute
    {
        public object Value { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="value">默认值</param>
        public DefaultAttribute(object value)
        {
            Value = value;
        }
    }
}
